
<script type="text/javascript" src="assets/jquery/jquery.uniform.js" charset="utf-8"></script>

<script type="text/javascript" charset="utf-8">
      $(function(){
        $("input, textarea, select").uniform();
      });
    </script>
<div  class="container">

<!--  
	<form id='uploadForm'>
 			<fieldset>
			<legend>Files</legend>
			<input type="radio" id="newLed" name="uploadType"
				value="newLed" /> New LED<br />
			<input type="radio" id="updateLed" name="uploadType" value="updateLed"
				checked="checked" /> Update LED<br/>
			<span id='filename'></span><br/>
			<a href='#' id='attach'>Add a file</a><br/>
			<input id="upload" type="file" name="file" data-url="services/upload" multiple style="opacity: 0; filter:alpha(opacity: 0);"><br/>
			<input type='button' value='Reset' id='reset' />
			<input type='submit' value='Upload' id='submit'/>
 			</fieldset>
	</form>
	-->
    <!-- The file upload form used as target for the file upload widget -->
    <form id="fileupload" action="services/upload" method="POST" enctype="multipart/form-data">
        <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
        <div class="row fileupload-buttonbar">
            <div class="span7">
                <label class="swiftwui_columnarForm_label">
                	<input type="radio" id="newLed" name="uploadType" value="newLed"  /> New LED
                </label>
                <label class="swiftwui_columnarForm_label">
                	<input type="radio" id="updateLed" name="uploadType" value="updateLed" checked="checked" /> Update LED
                </label>
    
                <!-- The fileinput-button span is used to style the file input field as button -->
                <span class="btn btn-success fileinput-button">
                    <i class="icon-plus icon-white"></i>
                    <span>Add files...</span>
                    <input type="file" name="files[]" multiple/>
                </span>
                
                <button type="submit" class="btn btn-primary start">
                    <i class="icon-upload icon-white"></i>
                    <span>Start upload</span>
                </button>
                <button type="reset" class="btn btn-warning cancel">
                    <i class="icon-ban-circle icon-white"></i>
                    <span>Cancel upload</span>
                </button>
                <button type="button" class="btn btn-danger delete">
                    <i class="icon-trash icon-white"></i>
                    <span>Delete</span>
                </button>
                
                
            </div>
            <br/>
            <input type="checkbox" class="toggle" style="float:left; margin-left:30px">
            <!-- The global progress information -->
            <div class="span5 fileupload-progress fade">
                <!-- The global progress bar -->
                <div class="progress progress-success progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100">
                    <div class="bar" style="width:0%;"></div>
                </div>
                <!-- The extended global progress information -->
                <div class="progress-extended">&nbsp;</div>
            </div>
        </div>
        <!-- The loading indicator is shown during file processing -->
        <div class="fileupload-loading"></div>
        <br>
        <!-- The table listing the files available for upload/download -->
        <table role="presentation" class="table table-striped" style="width:800px;"><tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery"></tbody></table>
    </form>	
	
	
</div>





<script type='text/javascript'>
	$('#fileupload').attr("action","services/upload"+"?mediUser="+ mediUser+"&mediPass="+mediEncryptedPassword+"&identifier="+identifier+"&isAdmin="+isAdmin);
</script>



<!-- The XDomainRequest Transport is included for cross-domain file deletion for IE8+ -->
<!--[if gte IE 8]><script src="assets/jquery-fileupload/js/cors/jquery.xdr-transport.js"></script><![endif]-->

<!-- The main application script -->
<script src="assets/jquery-fileupload/js/main.js"></script>